﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media.Imaging;

namespace SilverlightPlayground.RFB
{
    public class FrameBufferUpdateEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets the rectangle.
        /// </summary>
        /// <value>The rectangle.</value>
        public Rect Rectangle { get; set; }
        /// <summary>
        /// Gets or sets the data.
        /// </summary>
        /// <value>The data.</value>
        public WriteableBitmap Frame
        {
            get;
            private set;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="FrameBufferUpdateEventArgs"/> class.
        /// </summary>
        /// <param name="rectangle">The rectangle.</param>
        /// <param name="data">The data.</param>
        public FrameBufferUpdateEventArgs(Rect rectangle, WriteableBitmap frame)
        {
            this.Rectangle = rectangle;
            this.Frame = frame;
        }
    }
}